import React from 'react';
import { observer } from 'mobx-react-lite';
import PublicAlert from '@/components/alert';
import balanceStore from '@/store/balance';

const Alert = observer(() => {
    return (
        <PublicAlert
            alertStatus={balanceStore.alertStatus}
            alertTip={balanceStore.alertTip}
            closeAlert={() => balanceStore.setAlertStatus(false)}
        />
    );
});

export default Alert;
